<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="s">
        <h1></h1>
    </div>
    <span></span>

</body>
<script src="js/jquery.min.js"></script>
<script>
    $(() => {

        //将节点插入前面
        $('#s').insertAfter($('span'));
        //将节点插入后面
        $('#s').insertBefore($('span'));
        //将节点插入里面
        $('#s').append($('span'));


    })
</script>

</html>